package com.goockr.indicatordemo;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;

import me.relex.circleindicator.CircleIndicator;

public class MainActivity extends AppCompatActivity {

    ViewPager vp_ViewPager;
    CircleIndicator indicator;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        vp_ViewPager=(ViewPager)findViewById(R.id.vp_ViewPager);
        indicator=(CircleIndicator)findViewById(R.id.indicator);
        PaperAdapter paperAdapter=new PaperAdapter();

        vp_ViewPager.setAdapter(paperAdapter);
        indicator.setViewPager(vp_ViewPager);
    }
}
